<?php
//简单管理页面范例，在你的管理页面引用coresection/checkA.php就OK，当然，不要忘了添加注销登录的链接
include_once '../coresection/checkA.php';
?>

<? $system_part=$_REQUEST ['sys_part']; ?>

<?
include_once("../../config_controller.php");
$host = $_SERVER['HTTP_HOST']; //取得进入所输入的域名
$theme_folder = host_theme($host);

include_once '../../front/'.$theme_folder.'/connection.php';include_once '../coresection/check_session.php';;
?>

<?php include_once("function.php"); ?>
<?php include "../../front/".$theme_folder."/config.php"; ?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once('modules/head.php'); ?>
</head>

<body style="display:none">


<?php
$new_detail_nid=$_REQUEST['nid'];
?>


<?
//设置需要搜索的表格的前缀后缀
$table_Suffix=$sys_list_table;
$table=$table_Prefix.$table_Suffix;
//设置需要搜索的表格的前缀后缀

 ?>



<?php
 
	$sql = " DELETE FROM $table WHERE nid=$new_detail_nid";
	sql_log($sql);
$query=mysql_query($sql) or die ('删除数据失败');
    mysql_close($con);

?>



<?
//设置需要搜索的表格的前缀后缀
$table_Suffix='relation';
$table=$table_Prefix.$table_Suffix;
//设置需要搜索的表格的前缀后缀

 
?>



<?php
 
	$sql = " DELETE FROM $table WHERE detail_nid=$new_detail_nid";
	sql_log($sql);
$query=mysql_query($sql) or die ('删除数据失败');
    mysql_close($con);

?>









<script type="text/javascript">
 
alert("资料已删除，请点击确认返回继续操作.");
document.location.href = "detail-list.php?sys_part=<? echo $system_part ?>";
</script>

</body>